package com.fuqi.android.zhongcai.base.request.api;


import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.fuqi.android.zhongcai.base.ApiUrl;
import com.fuqi.android.zhongcai.base.request.result.bean.BannerBean;
import com.fuqi.framework.network.api.AbsRequest;
import com.fuqi.framework.network.params.BaseParams;


/*
*  获取图片（主页轮播，二维码）接口
* */




public class BannerListApi extends AbsRequest<BannerListApi.BannerListParams, BannerBean[]> {

    public BannerListApi(BannerListParams bannerListParams, Listener<BannerBean[]> listener, ErrorListener errorListener) {
        super(Method.POST, ApiUrl.getBannerListUrl(), bannerListParams, listener, errorListener, BannerBean[].class);
    }

    public static class BannerListParams extends BaseParams {

        public BannerListParams(String picType) {

//            主页轮播   TPLX_LB
//            微信二维码 TPLX_EWM

                put("PIC_TYPE", picType);

        }
    }


}
